import functools


def log(func):
    @functools.wraps(func)
    def wrapper(*args, **kwargs):

        print("log start")
        re = func(*args, **kwargs)
        print("log end")

        return re
    return wrapper

@log
def num():
    print("adfaef")


f = num()
f